<template>
    <div class="user-item">
        <div class="left">

        </div>
        <div class="right">
            <span class="userName"> {{ userName }}</span>
            <div class="info">
                <span>17:44</span>
                <span>online</span>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'userItem',
    props:{
        userName: String,
    }
}
</script>

<style lang='less' scoped>
    .user-item {
        padding: 8px 10px;
        display: flex;

        .left {
            width: 45px;
            height: 45px;
            margin-right: 10px;
            border-radius: 22.5px;
            background: #000;
        }
        .right{
            flex: 1;
            display: flex;
            justify-content: space-between;
            .userName{
                font-size: 12px;
            }
            .info {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                span {
                    color: #bdbebf;
                    font-size: 12px;
                }
                span:last-child {
                    font-size: 10px;
                    color: #fff;
                    padding: 0px 3px;
                    border-radius: 2px;
                    background: #108ee9;
                }
            }
        }
    }
</style>